//////////////////////////////////////////////////////////////////////////////

//  Magus platform configuration selection header file

//////////////////////////////////////////////////////////////////////////////

// Operating System Platform

#if defined(linux) || defined(__linux) || defined(__linux__)
	// linux:
	#define __MAGUS_POSIX
	#define __MAGUS_LINUX

#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
	// BSD:
	#define __MAGUS_POSIX

#elif defined(sun) || defined(__sun)
	// solaris:
	#define __MAGUS_POSIX
	#define __MAGUS_SUN

#elif defined(__sgi)
	// SGI Irix:
	#define __MAGUS_POSIX

#elif defined(__hpux)
	// hp unix:
	#define __MAGUS_POSIX

#elif defined(__CYGWIN__)
	// cygwin is not win32:
	#define __MAGUS_POSIX

#elif defined(__IBMCPP__)
	// IBM
	#define __MAGUS_POSIX

#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
	// win32:
	#define __MAGUS_WIN32

#endif

//////////////////////////////////////////////////////////////////////////////

// Hardware Platform

#define __MAGUS_BIG_ENDIAN 		1
#define __MAGUS_LITTLE_ENDIAN 	0

#if defined(__sparc)
	#define __MAGUS_BYTE_ORDER 	__MAGUS_BIG_ENDIAN
#elif defined(__i386)
	#define __MAGUS_BYTE_ORDER 	__MAGUS_LITTLE_ENDIAN
#else
	//additional add here
#endif

//////////////////////////////////////////////////////////////////////////////
